<template>
    <div class="container">
        <page-tool :show-before="true">
            <!-- 左边插槽 -->
            <span slot="before">共6936条数据</span>
            <!-- 右边插槽 -->
            <template slot="after">
                <el-button type="primary">新增</el-button>
                <el-button type="warning">导出</el-button>
            </template>
        </page-tool>
        <el-card>
            <el-button type="primary" @click="showFile">文件库</el-button>
        </el-card>

        <file-library ref="dialog" @submit="fetch" :num="num" />
        
    </div>
</template>

<script>
    export default {

        data() {
            return {
                num: 3
            };
        },
        methods: {
            showFile() {
                console.log('文件库')
                this.$refs.dialog.showDialog()
            },
            fetch(e) {
                console.log(e)
            }
        },
    };
</script>

<style>
</style>
